package com.deep.stream.service;

/**
 * @author dell
 * @create 2022/7/28 8:26
 */

import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.MessageChannel;
import org.springframework.stereotype.Component;

@Component
public interface OutputInterface {
    String OUTPUT1 = "output1";
    String OUTPUT2 = "output2";

    //创建一个输出通道  output1
    @Output(OUTPUT1)
    MessageChannel output1();
}